<template>
	<view>
		<zy-table :headList="headList" :dataList="dataList" border>
		</zy-table>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				//表格表头
				headList: [{
					name: this.$t('homepage.WarehouseManage.instorageTime'),
					key: 'createTime',
					width: '130'
				}, {
					name: this.$t('public.position'),
					key: 'positionCode'
				}, {
					name: this.$t('public.storage'),
					key: 'storageCode'
				}, {
					name: this.$t('homepage.WarehouseManage.box'),
					key: 'boxCode'
				}, {
					name: this.$t('homepage.WarehouseManage.materialCode'),
					key: 'materialCode'
				}, {
					name: this.$t('public.deliveryNum'),
					key: 'num'
				}],
				dataList: [], //表格数据,
			}
		},
		onLoad(e) {
			this.$nextTick(() => {
				let obj = e.dataList.replace("\"([^\"]*)\"", "$1");
				this.dataList = JSON.parse(obj)
			})

		},
		methods: {}
	}
</script>

<style>
</style>